package com.mdd.car.entity.vehicle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@ApiModel("车辆实体")
@TableName("ams_vehicle")
@EqualsAndHashCode(callSuper = true)
public class Vehicle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "车辆编号")
    private Long id;

    @ApiModelProperty(value = "车辆编码")
    private String vehicleNo;

    @ApiModelProperty(value = "店铺编号")
    private Integer storeId;

    @ApiModelProperty(value = "车辆颜色")
    private Long color;

    @ApiModelProperty(value = "发动机编号")
    private String engineNumber;

    @ApiModelProperty(value = "运营类型;运营状态：1、自运营2、代运营")
    private Integer operationType;

    @ApiModelProperty(value = "车品名称")
    private String vehicleName;

    @ApiModelProperty(value = "车牌")
    private String licensePlate;

    @ApiModelProperty(value = "租赁状态;租赁状态：0、待租赁1、已租赁")
    private Long rentalStatus;

    @ApiModelProperty(value = "车辆状态;车辆状态：0、正常1、维修中2、保养中")
    private Long vehicleStatus;

    @ApiModelProperty(value = "车辆来源")
    private String vehicleSrc;

    @ApiModelProperty(value = "车架号")
    private String vin;

    @ApiModelProperty(value = "车辆类型")
    private Long vehicleType;

    @ApiModelProperty(value = "乐观锁")
    private Long revision;
    @ApiModelProperty(value = "组织编码")
    private String deptCode;
    @ApiModelProperty(value = "车品id")
    private Long productId;

    @ApiModelProperty(value = "skuId")
    private Long skuId;

}

